/**
 * @description 微博数据模型
 */

const seq = require('../seq')
const { STRING, DECIMAL, INTEGER, TEXT } = require('../types')

const Blog = seq.define('blog', {
    userId: {
        type: INTEGER,
        allowNull: false,
        comment: '用户id'
     },
     content: {
        type: TEXT,
        allowNull: false,
        comment: '微博内容'
     },
     image: {
        type: STRING,
        allowNull: true,
        comment: '图片内容'
     }
})

module.exports = Blog